<!---Included External JS library------->
<script src="jquery-1.10.1.min.js" type="text/javascript"></script>

<!---Internal JS Code------->
<script type="text/javascript">
  $(document).ready(function(){

    $('#submitId').on('click',function(){
      //var uValue = $(this).val();
      var uValue = $('#unameId').val();
      alert(uValue);
    });


    $('#inputSetId').on('click',function(){

      $('#unameId').val("Write Less, Do More!!");

    });

  });
</script>

<input type="text" value="" id="unameId" />

<input type="submit" name="submit" id="submitId" value="I am done!!" />

<input type="submit" id="inputSetId" name="submit" value="Set Value to Text Field 'Write Less, Do More'!!" />
